import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Flydog from '@/components/Flydog'
import Shorturl from '@/components/shorturl'

Vue.use(Router)

export default new Router({
  //url为history模式
  mode: 'history',
  routes: [
    {
      path: '/',
      //name: 'HelloWorld',
      name:Flydog,
      component: Flydog
    },{
      path: '/shorturl',
      //name: 'HelloWorld',
      component: Shorturl
    }
  ]
})
